package com.cloud.rou.im.client.rest;

import cn.hutool.core.util.RandomUtil;
import com.cloud.rou.im.client.user.UserInfo;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public class ClientRestService {
    public UserInfo login(String username, String password) {
        UserInfo userInfo = new UserInfo();
        if("gao".equals(username)){
            userInfo.setUserId(1L);
            userInfo.setPort("8080");
            userInfo.setHost("127.0.0.1");
        }else {
            userInfo.setUserId(2L);
            userInfo.setPort("8080");
            userInfo.setHost("127.0.0.1");
        }
        return userInfo;
    }

  /*  public void logout(String token) {
        return doRequest(() -> restClient.logout(token).execute());
    }*/

  /*  public List<RelationDetail> friends(String userId, String token) {
        return doRequest(() -> restClient.friends(userId, token).execute());
    }

    public RelationDetail relation(String userId1, String userId2, String token) {
        return doRequest(() -> restClient.relation(userId1, userId2, token).execute());
    }*/
}
